package com.octnote.domain.user;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * APP用户设置表POJO定义
 * Created by leohehe on 2017/3/30.
 */
@Entity
@Table(name = "usersetting")
public class UserSetting {
    /**
     * 关联到用户表ID
     */
    @Id
    private Long userId;
    /**
     * 普通记事
     * 提醒方式(0:闹铃,1:短信,2:推送)
     */
    private int commonNoteWarn = 0;
    /**
     * 重要记事
     * 提醒方式(0:闹铃,1:短信,2:推送)
     */
    private int majorNoteWarn = 0;
    /**
     * 计划任务
     * 提醒方式(0:闹铃,1:短信,2:推送)
     */
    private int taskWarn = 0;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getCommonNoteWarn() {
        return commonNoteWarn;
    }

    public void setCommonNoteWarn(int commonNoteWarn) {
        this.commonNoteWarn = commonNoteWarn;
    }

    public int getMajorNoteWarn() {
        return majorNoteWarn;
    }

    public void setMajorNoteWarn(int majorNoteWarn) {
        this.majorNoteWarn = majorNoteWarn;
    }

    public int getTaskWarn() {
        return taskWarn;
    }

    public void setTaskWarn(int taskWarn) {
        this.taskWarn = taskWarn;
    }
}
